package com.huike.service;

import com.huike.dto.PageUserDto;
import com.huike.dto.SysUserDto;
import com.huike.entity.SysUser;
import com.huike.result.PageResult;
import com.huike.dto.LoginDto;
import com.huike.result.Result;
import com.huike.vo.LoginVo;
import com.huike.vo.SysUserVo;

import javax.servlet.http.HttpServletResponse;

public interface UserService {

    //生成验证码
    public void getCodeImage(HttpServletResponse response);

    //用户登录
    Result<LoginVo> userLogin(LoginDto loginDto);

    //查询用户列表
    Result<PageResult<SysUserVo>> list(PageUserDto dto);

    //添加用户
    Result add(SysUserDto dto);

    //根据id删除
    Result delete(Integer id);

    //根据id查询回显
    Result<SysUser> findById(Integer id);

    //修改用户
    Result update(SysUserDto dto);
}
